<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ page isELIgnored="false"%>
	<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//Dli XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dli/xhtml1-transitional.dli">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>用户中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="${pageContext.request.contextPath}/styles/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script src="${pageContext.request.contextPath}/js/user.js" type="text/javascript"></script>
<noscript ><meta http-equiv="refresh" content="5;url=nojs.html"><div style="text-align:center;color:red;">对不起！请启用js才能正常浏览！</div></noscript> 
</head>
<body>
<div class="main">
  <div class="header">
    <div class="block_header">
      <div class="logo"><a href="${pageContext.request.contextPath}/jsp/getfilmlist.action"><img src="${pageContext.request.contextPath}/images/logo5.jpg" width="401" height="145" border="0" alt="logo" /></a></div>
      <div class="menu">
        <ul>
         <li><a href="${pageContext.request.contextPath}/jsp/getfilmlist.action" class="active">首页</a></li>
          <li><a href="${pageContext.request.contextPath}/jsp/getyitongfilmlist">移通影讯</a></li>
		  <li><a href="${pageContext.request.contextPath}/jsp/getallfilmlist">影视列表</a></li>
          <li><a href="${pageContext.request.contextPath}/jsp/aboutus.jsp">关于我们</a></li>
                     <s:if test="#session.user!=null">
                   <li><a href="${pageContext.request.contextPath}/changeuser.action"> <s:property value="#session.user.us_nickname"/>:的账户</a></li>
                   <li><a href="${pageContext.request.contextPath}/loginout.action">登出</a></li>
                    </s:if>
                    <s:else>
                    <li><a href="${pageContext.request.contextPath}/jsp/regist.jsp">加入我们</a></li>
                    <li><a href="${pageContext.request.contextPath}/jsp/login.jsp">登陆</a></li>
                    </s:else>
        </ul>
      </div>
      <div class="clr"> </div>
    </div>
  </div>
  <div class="slider2">
    <div class="slider4_resize">
      <h2>用户中心</h2>
    </div>
    <div class="clr"> </div>
  </div>
  <div class="clr"> </div>
  <div class="body">
    <div class="body_resize2">
       <div id="contactform_2">
      <ol>
        <li> <img src="${pageContext.request.contextPath}/<s:property value="#session.user.us_image"/>" width="60" height="60" align="top" /> <h1 style='color:#ffffff;'><s:property value="#session.user.us_nickname"/>的账号管理</h1></li>
        <li>
            <label > 
                     <input type="button" value="基本信息" class="menu_user" /> 
                     <input type="button" value="密码修改" class="menu_user" />
                     <input type="button" value="头像修改" class="menu_user" /> 
                     <input type="button" value="收藏信息" class="menu_user" /> 
            </label>
        </li>
        </ol>
	   <s:form  method="post"  >
        <ol>
        <li>
            <label ><span class="red0"><s:actionerror/></span></label>
         </li>
		   <li>
            <label for="email">邮箱:<span class="red1"></span></label>
            <s:textfield id="email"  Class="text" name="email" />
          </li>
          <li>
            <label for="name">昵称:<span class="red2"></span></label>
             <s:textfield id="name" Class="text" name="user.us_nickname"/>
          </li>
          <li>
            <label for="name">创建时间:<s:property value="date"/></label>
          </li>
		  <li class="buttons">
            <input type="button" value="修改" class="changeUser"/>
		 </li>
        </ol>   
	  </s:form>
	   <s:form  method="post"  style="display:none">
        <ol>
        <li>
            <label ><span class="red0"></span></label>
         </li>
		   <li>
            <label for="password1">原始密码<span class="red3"></span></label>
            <s:password id="password1"  Class="text" name="password" />
          </li> 
           <li>
            <label for="password2">修改密码<span class="red4"></span></label>
            <s:password id="password2"  Class="text" name="user.us_password" />
          </li> 
		  <li class="buttons">
            <input type="button" value="修改密码" class="changePassword"/>
		 </li>
        </ol>   
	  </s:form>
	   <s:form action="changeimg" method="post"  enctype="multipart/form-data" style="display:none">
        <ol>
         <li>
            <label ><span class="red0"></span></label>
         </li>
        <li>
            <label ><s:file id="file" name="file"/></label>
         </li>
		  <li class="buttons">
            <input type="submit" value="修改头像" class="changeImg"/>
		 </li>
        </ol>   
	  </s:form>
	  
	  <s:form style="display:none">
	      <s:iterator value="user_collection_set" var="user_collection">
	      <s:url action="filim_information" id="shou_cang">
	              <s:param name="film.fi_id">${user_collection.film.fi_id}</s:param>
	      </s:url>
	      <s:url action="del_collection" id="del_shou_cang">
	              <s:param name="userColle.uc_id">${user_collection.uc_id}</s:param>
	      </s:url>
	      <li> <label >影片名称：${user_collection.film.fi_name} </label></li>
	      <li><label >收藏日期:${user_collection.uc_time}</label></li>
           <li>
                <label >操作:<s:a style='color:#ffffff;' href="%{shou_cang}">详情</s:a> 
               <s:a style='color:#ffffff;' href="%{del_shou_cang}" onclick="return confirm('确定删删除收藏?')">删除</s:a>
               </label>
           </li>
         <li><label>-----------------------------------------------</label></li>
	      </s:iterator>
	  </s:form>
	  
    </div>
    <div class="clr"></div>
    </div>
  </div>

  <div class="footer">
    <div class="resize">
      <p class="footer_logo">&nbsp;</p>
      <div>©2012  重庆邮电大学移通学院<a href="${pageContext.request.contextPath}/jsp/aboutus.jsp">关于我们
        </a></div>
    </div>
    <p class="clr"></p>
  </div>
</div>
</body>
</html>
